
/* Copyright 2018 JDCLOUD.COM

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http:#www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Resource-Tag API
资源标签相关接口

OpenAPI spec version: v1
Contact: 

NOTE: This class is auto generated by the jdcloud code generator program.
*/

#import <Foundation/Foundation.h>

#import <JDCloudOCSDKResourcetag/ResourcetagExecutor.h>


/// 获得资源与对应标签列表详情，不含资源名称和可用区。&lt;br/&gt;
   /// 注意查询cdn的资源时url中regionId必须指定为cn-all。&lt;br/&gt;
   /// 该接口目前不支持分页功能。
   /// 
@implementation  ResourcetagDescribeResourcesExecutor

-(id) initWithJDCloudClient:(ResourcetagClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/tags:describeResources";
    return self;
}
@end

/// 获取资源标签。&lt;br/&gt;
   /// 注意查询cdn资源的标签时url中regionId必须指定为cn-all。&lt;br/&gt;
   /// 注意查询不限制地域时url中regionId必须指定为all-region。
   /// 
@implementation  ResourcetagDescribeTagsExecutor

-(id) initWithJDCloudClient:(ResourcetagClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/describeTags";
    return self;
}
@end

/// 资源标签绑定。&lt;br/&gt;
   /// 注意cdn资源绑定标签时url中regionId必须指定为cn-all。
   /// 
@implementation  ResourcetagTagResourcesExecutor

-(id) initWithJDCloudClient:(ResourcetagClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/tags:tagResources";
    return self;
}
@end

/// 资源标签解绑。&lt;br/&gt;
   /// 注意cdn资源解绑标签时url中regionId必须指定为cn-all。
   /// 
@implementation  ResourcetagUnTagResourcesExecutor

-(id) initWithJDCloudClient:(ResourcetagClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/tags:unTagResources";
    return self;
}
@end

/// 根据标签查找资源。 &lt;br/&gt;
   /// 若要查找cdn产品线的资源则url中的regionId必须指定为cn-all。
   /// 
@implementation  ResourcetagQueryResourceExecutor

-(id) initWithJDCloudClient:(ResourcetagClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/queryResource";
    return self;
}
@end
